hello,
can anyone tell me if there is something in lua thats similar to an empty define in C?
Usecase is following in C/C++:
//#define DEBUG(x) some_debug_fct(x) //debug case
#define DEBUG(c) //empty in production
i've already tried following
--somename = trace_fct(text)
somename = function () end
but function doesn't seem to be a lightweight operation in lua :-(