|
Am 13.10.2015 um 15:29 schröbte linuxfan@tin.it:
if ptr=pointer(xEnviron) then begin lua_pushstring(L, xEnviron[st]); exit end; The last 4 lines are repeated for every table (5 in total for now). [...] The tests "if ptr=...." would be also not required for the same reason, a typecast could be used to deploy the pointer directly.
Why don't you do that? It sounds like it would save you 16 lines of duplicated code.
Have a nice day, best regards, Linuxfan
Philipp