Search found 3 matches

by zet
Fri Jun 02, 2017 7:43 pm
Forum: Support and Development
Topic: Attempt to yield across C-call boundary
Replies: 4
Views: 4872

Re: Attempt to yield across C-call boundary

Ah, thank you for clearing that up. I didn't know that LuaJIT 2 changed debug hooks to a global thing. That is ... unfortunate. I still don't get it though why I can't yield from the debug hook function. This used to work ... I will continue to research this. I would prefer not having to compile Löv...
by zet
Fri Jun 02, 2017 12:22 pm
Forum: Support and Development
Topic: Attempt to yield across C-call boundary
Replies: 4
Views: 4872

Re: Attempt to yield across C-call boundary

I started looking into the source code of Löve, but seemingly I can't find any modifications. I compared it with another engine which uses LuaJIT 1.1.5 Here's the code in question: function foo() for i=1,10 do print(i) end end co = coroutine.create(foo) jit.off(true,true) debug.sethook(co,function(....
by zet
Fri Jun 02, 2017 7:35 am
Forum: Support and Development
Topic: Attempt to yield across C-call boundary
Replies: 4
Views: 4872

Attempt to yield across C-call boundary

I'm trying to make a presentation about Lua in Lua and I picked Löve for doing this. The idea is simple (and I have done that in the past): 1) Loadstring(code) 2) create coroutine 3) set debug hook on *that* coroutine 4) step through the code by yielding in the hook method The requirement for doing ...