Wasn't it Steve who wrote:
>I'm attempting to write a macro that looks up a value in a table
Why not just add the ";"s that it's asking for. This works:
#macro __get_table_element1( tbl, e, n )
// Macro to calculate interpolated value from table.
#local tick = clock * 1399;
#local ftick = floor( tick );
#local i0 = ( ftick * n ) + e;
#local i1 = i0 + n;
#if ( 1399 - ftick )
( tbl[i1] );
#else
( tbl[i0] );
#end
#end
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|