1
0
Fork 0

Codechange: Make the squirrel-exporter skip ctor lists.

pull/14051/head
frosch 2025-04-20 14:44:47 +02:00 committed by frosch
parent 6256b55671
commit 54de376c55
1 changed files with 3 additions and 1 deletions

View File

@ -614,8 +614,10 @@ foreach(LINE IN LISTS SOURCE_LINES)
string(REGEX REPLACE "\\*" "" LINE "${LINE}")
string(REGEX REPLACE "\\(.*" "" LINE "${LINE}")
string(REGEX REPLACE ".*\\(" "" PARAM_S "${PARAM_S}")
# Parameters start at first "(". Further "(" will appear in ctor lists.
string(REGEX MATCH "\\(.*" PARAM_S "${PARAM_S}")
string(REGEX REPLACE "\\).*" "" PARAM_S "${PARAM_S}")
string(REGEX REPLACE "^\\(" "" PARAM_S "${PARAM_S}")
string(REGEX MATCH "([^ ]+)( ([^ ]+))?" RESULT "${LINE}")
set(FUNCTYPE "${CMAKE_MATCH_1}")