|
@ -911,6 +911,8 @@ int ink_compile(struct context *pContext, const char* buffer) { |
|
|
|
|
|
|
|
|
int ink_can_run(struct context* pContext) { |
|
|
int ink_can_run(struct context* pContext) { |
|
|
int it; |
|
|
int it; |
|
|
|
|
|
if(pContext->panic) return 0; |
|
|
|
|
|
if(pContext->routines_top == 0) return 0; |
|
|
for(it = 0; it < pContext->routines_top; ++it) { |
|
|
for(it = 0; it < pContext->routines_top; ++it) { |
|
|
if(pContext->routines[it].panic == 0) { |
|
|
if(pContext->routines[it].panic == 0) { |
|
|
return 1; |
|
|
return 1; |
|
|