X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Flib%2Farraylist.qh;h=18305177bf8a266261e1be9ad143dfde695fcace;hb=5453f53da1df88742c11c71e4dc5b9c3e3d24c62;hp=f9df9e6bfc5c60a97ff5a55d911f3f015914de8b;hpb=2489e43ce71c67339a9eb359a20074083d0760d7;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/lib/arraylist.qh b/qcsrc/lib/arraylist.qh index f9df9e6bf..18305177b 100644 --- a/qcsrc/lib/arraylist.qh +++ b/qcsrc/lib/arraylist.qh @@ -1,7 +1,6 @@ -#ifndef ARRAYLIST_H -#define ARRAYLIST_H +#pragma once -typedef entity ArrayList; +USING(ArrayList, entity); .int al_buf; .int al_len; @@ -21,7 +20,7 @@ typedef entity ArrayList; MACRO_BEGIN \ { \ buf_del(this.al_buf); \ - remove(this); \ + delete(this); \ this = NULL; \ } MACRO_END @@ -69,5 +68,3 @@ entity al_ftoe(int i) = #80; if (cond) { body } \ } \ } MACRO_END - -#endif