mirror of
https://github.com/godotengine/godot.git
synced 2025-10-24 02:13:36 +00:00
GDScript: Implement lambdas compilation and runtime
This commit is contained in:
parent
3155368093
commit
c201b212c7
16 changed files with 364 additions and 39 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue