From 7a496919547d7aa0de4ff999bff0101b42bf5442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guilloux?= Date: Sun, 2 Feb 2025 13:30:45 +0100 Subject: [PATCH] Cleanup: [Script] Remove unneeded squirrel exports since #13389 (#13437) --- cmake/scripts/SquirrelExport.cmake | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cmake/scripts/SquirrelExport.cmake b/cmake/scripts/SquirrelExport.cmake index f32f709887..1f7bde1656 100644 --- a/cmake/scripts/SquirrelExport.cmake +++ b/cmake/scripts/SquirrelExport.cmake @@ -307,11 +307,6 @@ foreach(LINE IN LISTS SOURCE_LINES) string(APPEND SQUIRREL_EXPORT "\nnamespace SQConvert {") set(NAMESPACE_OPENED TRUE) endif() - string(APPEND SQUIRREL_EXPORT "\n /* Allow enums to be used as Squirrel parameters */") - foreach(ENUM IN LISTS ENUMS) - string(APPEND SQUIRREL_EXPORT "\n template <> struct Param<${ENUM}> { static inline ${ENUM} Get(HSQUIRRELVM vm, int index) { SQInteger tmp; sq_getinteger(vm, index, &tmp); return (${ENUM})tmp; } };") - string(APPEND SQUIRREL_EXPORT "\n template <> struct Return<${ENUM}> { static inline int Set(HSQUIRRELVM vm, ${ENUM} res) { sq_pushinteger(vm, res); return 1; } };") - endforeach() endif() # Then check whether we have structs/classes to print