Example #1
0
def pypy_execute_source(ll_source):
    from target import EvalFn, run_with_stacklets
    source = rffi.charp2str(ll_source)
    f = EvalFn(source)
    run_with_stacklets.invoke([f])
    res = 0
    return rffi.cast(rffi.INT, res)
Example #2
0
def pypy_execute_source(ll_source):
    from target import EvalFn, run_with_stacklets
    source = rffi.charp2str(ll_source)
    f = EvalFn(source)
    run_with_stacklets.invoke([f])
    res = 0
    return rffi.cast(rffi.INT, res)
Example #3
0
def pypy_execute_source(ll_source):
    from target import EvalFn, run_with_stacklets
    after = rffi.aroundstate.after
    if after: after()
    source = rffi.charp2str(ll_source)
    f = EvalFn(source)
    run_with_stacklets.invoke([f])
    res = 0
    before = rffi.aroundstate.before
    if before: before()
    return rffi.cast(rffi.INT, res)
Example #4
0
def pypy_execute_source(ll_source):
    from target import EvalFn, run_with_stacklets
    after = rffi.aroundstate.after
    if after: after()
    source = rffi.charp2str(ll_source)
    f = EvalFn(source)
    run_with_stacklets.invoke([f])
    res = 0
    before = rffi.aroundstate.before
    if before: before()
    return rffi.cast(rffi.INT, res)