1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

GDScript: Implement lambdas compilation and runtime

This commit is contained in:
George Marques
2021-03-28 11:03:13 -03:00
parent 3155368093
commit c201b212c7
16 changed files with 364 additions and 39 deletions

View File

@@ -150,6 +150,10 @@ GDScriptFunction::GDScriptFunction() {
}
GDScriptFunction::~GDScriptFunction() {
for (int i = 0; i < lambdas.size(); i++) {
memdelete(lambdas[i]);
}
#ifdef DEBUG_ENABLED
MutexLock lock(GDScriptLanguage::get_singleton()->lock);