Skip to content

Commit

Permalink
Array/Dict marshalling fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cvet committed Feb 20, 2025
1 parent 386db6b commit 699f958
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BuildTools/codegen.py
Original file line number Diff line number Diff line change
Expand Up @@ -1814,9 +1814,9 @@ def genCode(lang, target, isASCompiler=False, isASCompilerValidation=False):
def metaTypeToASEngineType(t, ret = False):
tt = t.split('.')
if tt[0] == 'arr':
return 'CScriptArray*'
return 'CScriptArray*' if tt[-1] != 'ref' else 'CScriptArray*&'
elif tt[0] == 'dict':
return 'CScriptDict*'
return 'CScriptDict*' if tt[-1] != 'ref' else 'CScriptDict*&'
elif tt[0] in ['init', 'callback', 'predicate']:
return 'asIScriptFunction*'
elif tt[0] == 'Entity':
Expand Down

0 comments on commit 699f958

Please sign in to comment.