Changeset 215 for soft/giet_vm/libs/libsrl
- Timestamp:
- Sep 17, 2012, 10:47:46 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/libs/libsrl/srl_args.h
r213 r215 11 11 12 12 13 # define SRL_GET_VBASE(task_name, port, type) 14 ({ 13 # define SRL_GET_VBASE(task_name, port, type) \ 14 ({ \ 15 15 unsigned int vbase; \ 16 if( giet_vobj_get_vbase( APP_NAME , alias_##task_name.port, type, &vbase ) ) 17 { 18 srl_log_printf( NONE, "\n[ERROR] in "#task_name" task :\n"); 19 srl_log_printf( NONE, " undefined port <"#port"> for channel(%s): %d\n", 20 alias_##task_name.port,vbase); 21 srl_log_printf( TRACE, "*** &"#port" = %x\n\n", vbase ); 22 srl_exit(); 23 }else 24 srl_log_printf( TRACE, "%s:%d: arg of %s for %s,from %s; &"#port" = %x\n\n", 25 __FILE__, __LINE__, APP_NAME, #task_name,#port, vbase ); 16 if( giet_vobj_get_vbase( APP_NAME , alias_##task_name.port, type, &vbase ) ) \ 17 { \ 18 srl_log_printf( NONE, "\n[ERROR] in "#task_name" task :\n"); \ 19 srl_log_printf( NONE, " undefined port <"#port"> for channel(%s): %d\n", \ 20 alias_##task_name.port,vbase); \ 21 srl_log_printf( TRACE, "*** &"#port" = %x\n\n", vbase ); \ 22 srl_exit(); \ 23 }else \ 24 srl_log_printf( TRACE, "%s:%d: arg of %s for %s,from %s; &"#port" = %x\n\n", \ 25 __FILE__, __LINE__, APP_NAME, #task_name,#port, vbase ); \ 26 26 vbase;\ 27 27 })
Note: See TracChangeset
for help on using the changeset viewer.