-#ifndef LAZY_H
-#define LAZY_H
+#pragma once
#include "oo.qh"
CLASS(Lazy, Object)
- ATTRIB(Lazy, m_get, entity(), func_null);
+ ATTRIB(Lazy, m_get, entity());
CONSTRUCTOR(Lazy, entity() _compute)
{
this.m_get = _compute;
if (!done) { it = compute; done = true; } \
return it; \
}
-#endif