The code is compatible to both. Currently trying with D1. The function becomes this:

public static char[] mixinLuaRegisterFunction(char[] lua_state, char[] name,
                char[] lua_library_dot_name)
{
return ("mixin (mixinLuaRegisterFunctionAtLine (\"" ~ lua_state ~ "\", \"" ~ name ~ "\", \"" ~ lua_library_dot_name ~ "\", __LINE__));");
}

Furthermore the function is defined in another module and imported. mixin is used in the main module.

Reply via email to