Skip to content

Commit

Permalink
apply temporary bandaid for commit/rollback
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Nov 28, 2024
1 parent 8462a3f commit 8abd85d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/core/chuck_compile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1111,10 +1111,12 @@ t_CKBOOL Chuck_Compiler::compile_single( Chuck_CompileTarget * target )

// commit
if( ret ) // 1.5.4.3 (ge) update to call commit_namespaces | was: env()->global()->commit();
{ env()->commit_namespaces(); }
{ env()->global()->commit(); }
// { env()->commit_namespaces(); }
// or rollback
else // 1.5.4.3 (ge) update to call commit_namespaces | was: env()->global()->rollback();
{ env()->rollback_namespaces(); }
{ env()->global()->rollback(); }
// { env()->rollback_namespaces(); }

// unload the context from the type-checker
if( !type_engine_unload_context( env() ) )
Expand Down
6 changes: 4 additions & 2 deletions src/core/chuck_type.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -904,10 +904,12 @@ t_CKBOOL type_engine_check_prog( Chuck_Env * env, a_Program prog,

// commit
if( ret ) // 1.5.4.3 (ge) update to env->commit_namespaces() | was: env->global()->commit();
{ env->commit_namespaces(); }
{ env->global()->commit(); }
// { env->commit_namespaces(); }
// or rollback
else // 1.5.4.3 (ge) update to env->commit_namespaces() | was: env->global()->rollback();
{ env->rollback_namespaces(); }
{ env->global()->rollback(); }
// { env->rollback_namespaces(); }

// unload the context from the type-checker
if( !type_engine_unload_context( env ) )
Expand Down

0 comments on commit 8abd85d

Please sign in to comment.