Skip to content
Philipp Janda edited this page Mar 16, 2015 · 1 revision

luaL_Buffer

The implementation of the luaL_Buffer API in Lua 5.2 and Lua 5.3 is significantly different from its Lua 5.1 counterpart. To provide the new functions of Lua 5.3 in Compat-5.3, the complete API had to be backported. That made it necessary to replace the old luaL_Buffer type with a new structure using the C preprocessor. This can cause problems if you pass a luaL_Buffer as a parameter to a function from one compilation unit to another when not all of the compilation units use the same luaL_Buffer type. This only affects Lua 5.1.

Clone this wiki locally