Logo
Explore Mail Help
Register Sign In
Mirror/wren
1
0
Fork 1
You've already forked wren
mirror of https://github.com/wren-lang/wren.git synced 2026-01-16 20:28:04 +01:00
Code Issues Packages Projects Releases Wiki Activity
Files
debugger
wren/test/api/call_calls_foreign.h

5 lines
132 B
C
Raw Permalink Normal View History

Add a limited form of re-entrant calls. This doesn't let you arbitrarily call back into the VM from within foreign methods. I'm still not sure if that's even a good idea since God knows what that would mean if you switch fibers while doing that. But this does allow the very important use case of being able to call a foreign method from within a call to wrenCall(). In other words, foreign methods need to always be leaf calls on the call stack, but the root of that stack can now come from runInterpreter() or wrenCall(). Fix #510.
2019-02-08 17:09:39 -08:00
#include "wren.h"
WrenForeignMethodFn callCallsForeignBindMethod(const char* signature);
Merge pull request #751 from wren-lang/0.3.0-refactor 0.3.0 refactor
2020-06-05 14:57:20 -07:00
int callCallsForeignRunTests(WrenVM* vm);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.0 Page: 86ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API