[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lua_pushcfunction annoyance
- From: "Tom Spilman" <tom@...>
- Date: Sun, 17 Oct 2004 03:31:52 -0500
This isn't a common issue, but stumped me for about 10 minutes.
lua_pushcfunction macro fails with template functions with more than one
template argument in VC++ .Net 2003 (because the extra comma). The normal
parenthesis fix solves it...
#define lua_pushcfunction(L,f) lua_pushcclosure(L, (f), 0)
This is probably a low priority issue, but should probably be addressed
someday.
Tom Spilman
Co-owner | Programmer
www.sickheadgames.com