Revert d7bd67cda3: [Scripts] "_typeof" metamethod negatively affects old scripts

This commit is contained in:
glx22
2025-02-19 14:58:24 +01:00
committed by Loïc Guilloux
parent 3d5083218d
commit a577229e95
7 changed files with 8 additions and 13 deletions

View File

@@ -484,8 +484,9 @@ foreach(LINE IN LISTS SOURCE_LINES)
string(APPEND SQUIRREL_EXPORT "\n SQ${API_CLS}.DefSQStaticMethod(engine, &${CLS}::${FUNCNAME},${SPACES}\"${FUNCNAME}\",${SPACES}${ARGC}, \"${TYPES}\");")
endif()
endforeach()
string(APPEND SQUIRREL_EXPORT "\n SQ${API_CLS}.DefSQAdvancedStaticMethod(engine, &PushClassName<${CLS}, ScriptType::${APIUC}>, \"_typeof\");")
string(APPEND SQUIRREL_EXPORT "\n")
if(MLEN)
string(APPEND SQUIRREL_EXPORT "\n")
endif()
# Non-static methods
set(MLEN 0)