X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Flazy.qh;h=62d04b32e909bb741b55a74f77c37f9bccfa084c;hb=3cc71b21056619026df243c7888d0ff151600a02;hp=5e0329bd206c21e4c94881bd8e947fea7afc51b2;hpb=317ec3eb27ada1c4668876e9499136125acb7984;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/lazy.qh b/qcsrc/lib/lazy.qh index 5e0329bd2..62d04b32e 100644 --- a/qcsrc/lib/lazy.qh +++ b/qcsrc/lib/lazy.qh @@ -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