Skip to content

Instantly share code, notes, and snippets.

@jrsa
Created March 10, 2016 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jrsa/5d4be1c8ed88c810e7e8 to your computer and use it in GitHub Desktop.
Save jrsa/5d4be1c8ed88c810e7e8 to your computer and use it in GitHub Desktop.
diff --git a/src/chuck_emit.cpp b/src/chuck_emit.cpp
index 7024c51..0e35cff 100644
--- a/src/chuck_emit.cpp
+++ b/src/chuck_emit.cpp
@@ -4494,7 +4494,7 @@ t_CKBOOL emit_engine_emit_spork( Chuck_Emitter * emit, a_Exp_Func_Call exp )
// handle need this
emit->code->need_this = exp->ck_func->is_member;
// name it
- emit->code->name = "spork~exp";
+ emit->code->name = exp->ck_func->name;
// keep track of full path (added 1.3.0.0)
emit->code->filename = emit->context->full_path;
// push op
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment