]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/lazy.qh
Disable cl_useenginerefdef by default so that the QC implementation is used
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / lazy.qh
index 5e0329bd206c21e4c94881bd8e947fea7afc51b2..62d04b32e909bb741b55a74f77c37f9bccfa084c 100644 (file)
@@ -1,10 +1,9 @@
-#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;
@@ -19,4 +18,3 @@ ENDCLASS(Lazy)
                if (!done) { it = compute; done = true; } \
                return it; \
        }
-#endif