Re: Quick question

new topic     » goto parent     » topic index » view thread      » older message » newer message
mattlewis said...

Your function takes an atom. Use E_ATOM.

I still get 4294967295 using E_ATOM.

include std/dll.e  
 
function f( atom i ) 
    printf( 1, "i = %d (#%08x)\n", i ) 
    return 0 
end function 
 
constant r_f  = routine_id( "f") 
printf( 1, "r_f = %d\n", {r_f} ) 
 
constant cb_f = call_back( r_f ) 
printf( 1, "cb_f = #%08x\n", {cb_f} ) 
 
constant c_f = define_c_func( {}, cb_f, {E_ATOM}, E_INTEGER ) 
printf( 1, "c_f = %d\n", {c_f} ) 
 
? c_func( c_f, {-1} ) 

r_f = 3 
cb_f = #00390000 
c_f = 28 
i = 4294967295 (#FFFFFFFF) 
0 

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu