> Thoughts (other than 'don't be so lazy')?
Have you looked at PiL (https://www.lua.org/pil/25.3.html)?
Yes, thank you. I noted that it calls an error function but the closest I could find was luaL_error.
I also *just* found luaL_pushfstring. Perhaps I'll adapt call_va to use luaL_pushfstring.
Thanks Roberto (and Sean!)
Okay, this seems to work (in 1 out of 1 tested scenarios!):
int wrlog(lua_Integer level, char * format, ...)
va_start (args, format);
vsnprintf (buffer,LOG_STR_SZ,format, args);
lua_pushstring(L, (const char*)&buffer);
// return (lua_pcall(L, 2, 0, (void*)NULL));
lua_call(L, 2, 0);