Changeset 22338 for v6

Show
Ignore:
Timestamp:
09/24/08 18:49:40 (2 months ago)
Author:
pmurias
Message:

[pugs] evaling code in the embedded smop works

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • v6/smop/src/smop_haskell_ffi.c

    r22336 r22338  
    2525  return SMOP__S1P__RootNamespace; 
    2626} 
     27SMOP__Object* smop_get_cvar(char* var) { 
     28  if (strcmp(var,"SMOP__S1P__LexicalScope") == 0) return SMOP__S1P__LexicalScope; 
     29  else if (strcmp(var,"SMOP__S1P__RootNamespace") == 0) return SMOP__S1P__RootNamespace; 
     30  printf("unable to fetch %s\n"); 
     31  return SMOP__NATIVE__bool_false; 
     32}