Lines Matching defs:constants
860 /* Those two types of constants are not supported in elua */
863 #warning eLua does not support pointers as constants. By default, nil will be used as value
868 #warning eLua does not support pointers to member as constants. By default, nil will be used as value
1032 /* Can be used to create namespaces. Currently used to wrap class static methods/variables/constants */
1382 SWIGINTERN void SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]); /* forward declaration */
2050 /* helper to recursively add class static details (static attributes, operations and constants) */
2655 SWIG_Lua_InstallConstants(lua_State *L, swig_lua_const_info constants[]) {
2657 for (i = 0; constants[i].type; i++) {
2658 switch(constants[i].type) {
2660 lua_pushstring(L,constants[i].name);
2661 lua_pushinteger(L,(lua_Integer)constants[i].lvalue);
2665 lua_pushstring(L,constants[i].name);
2666 lua_pushnumber(L,(lua_Number)constants[i].dvalue);
2670 lua_pushstring(L,constants[i].name);
2672 char c = (char)constants[i].lvalue;
2678 lua_pushstring(L,constants[i].name);
2679 lua_pushstring(L,(char *) constants[i].pvalue);
2683 lua_pushstring(L,constants[i].name);
2684 SWIG_NewPointerObj(L,constants[i].pvalue, *(constants[i]).ptype,0);
2688 lua_pushstring(L,constants[i].name);
2689 SWIG_NewMemberObj(L,constants[i].pvalue,constants[i].lvalue,*(constants[i]).ptype);