소스 검색

optimized the run to not be done if there are no routine or on VM panic

main
Ludovic 'Archivist' Lagouardette 1 개월 전
부모
커밋
24a0eea561
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      lib.c

+ 2
- 0
lib.c 파일 보기

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

불러오는 중...
취소
저장