#include <assert.h> statements in Lua C code

42 views
Skip to first unread message

bil til

unread,
Oct 23, 2025, 6:15:42 AMOct 23
to lu...@googlegroups.com
... it would be nice if you could restrict this #include <asssert.h>
to exactly one point, best e. g. in the luaconf.h.

This would make it more easy to use customized assertion.

(I use a file "myassert.h", it is a bit annoying that I have to modify
ca. 5 Lua source files to exchange these things - of course I do not
like to modfiy C Lua source files, it is somehow more safe to keep
them untouched).

(I use armcc, and this compiler has the strange property, that it
recognizes if assert.h ist included, and IF it is included and you try
to overwrite assert, than error messages will appear, or at least
strong warnings...).
Reply all
Reply to author
Forward
0 new messages