Lines Matching defs:constants
851 /* Those two types of constants are not supported in elua */
854 #warning eLua does not support pointers as constants. By default, nil will be used as value
859 #warning eLua does not support pointers to member as constants. By default, nil will be used as value
1009 /* Can be used to create namespaces. Currently used to wrap class static methods/variables/constants */
1359 SWIGINTERN void SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]); /* forward declaration */
2025 /* helper to recursively add class static details (static attributes, operations and constants) */
2618 SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) {
2620 for (i = 0; constants[i].type; i++) {
2621 switch(constants[i].type) {
2623 lua_pushstring(L,constants[i].name);
2624 lua_pushinteger(L,(lua_Integer)constants[i].lvalue);
2628 lua_pushstring(L,constants[i].name);
2629 lua_pushnumber(L,(lua_Number)constants[i].dvalue);
2633 lua_pushstring(L,constants[i].name);
2635 char c = (char)constants[i].lvalue;
2641 lua_pushstring(L,constants[i].name);
2642 lua_pushstring(L,(char *) constants[i].pvalue);
2646 lua_pushstring(L,constants[i].name);
2647 SWIG_NewPointerObj(L,constants[i].pvalue, *(constants[i]).ptype,0);
2651 lua_pushstring(L,constants[i].name);
2652 SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype);