comparison src/lisp.h @ 5005:4170f3809a28

Cast correctly, Dynarr_verify, Dynarr_verify_mod, no ERROR_CHECK_STRUCTURES 2010-02-07 Aidan Kehoe <kehoea@parhasard.net> * lisp.h (Dynarr_verify, Dynarr_verify_mod): If ERROR_CHECK_STRUCTURES is not defined, cast the argument in these two macros; fixes the g++ build.
author Aidan Kehoe <kehoea@parhasard.net>
date Sun, 07 Feb 2010 23:34:21 +0000
parents 714d854d00e9
children eadd99984bfb
comparison
equal deleted inserted replaced
5004:788c38f20376 5005:4170f3809a28
1857 do { \ 1857 do { \
1858 Dynarr *dy = Dynarr_verify (d); \ 1858 Dynarr *dy = Dynarr_verify (d); \
1859 dy->locked = 0; \ 1859 dy->locked = 0; \
1860 } while (0) 1860 } while (0)
1861 #else 1861 #else
1862 #define Dynarr_verify(d) (d) 1862 #define Dynarr_verify(d) ((Dynarr *) d)
1863 #define Dynarr_verify_mod(d) (d) 1863 #define Dynarr_verify_mod(d) ((Dynarr *) d)
1864 #define Dynarr_lock(d) DO_NOTHING 1864 #define Dynarr_lock(d) DO_NOTHING
1865 #define Dynarr_unlock(d) DO_NOTHING 1865 #define Dynarr_unlock(d) DO_NOTHING
1866 #endif /* ERROR_CHECK_STRUCTURES */ 1866 #endif /* ERROR_CHECK_STRUCTURES */
1867 1867
1868 /************* Dynarr creation *************/ 1868 /************* Dynarr creation *************/