- Timestamp:
- 09/18/08 12:02:00 (2 months ago)
- Location:
- v6/smop
- Files:
-
- 3 modified
-
CMakeLists.txt (modified) (1 diff)
-
include/smop_base.h (modified) (4 diffs)
-
src/smop_s1p_io.ri (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
v6/smop/CMakeLists.txt
r22272 r22274 1 1 project (smop) 2 SET( CMAKE_C_FLAGS "-O0 -g3 -DSMOP_LOWLEVEL_MEM_ TRACE" )2 SET( CMAKE_C_FLAGS "-O0 -g3 -DSMOP_LOWLEVEL_MEM_DEBUG -DSMOP_LOWLEVEL_MEM_TRACE" ) 3 3 SET( CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE ) 4 4 cmake_minimum_required (VERSION 2.6) -
v6/smop/include/smop_base.h
r22017 r22274 1 1 #include <stdio.h> 2 2 #ifndef SMOP_BASE_H 3 3 #define SMOP_BASE_H … … 83 83 )) 84 84 85 #ifdef SMOP_LOWLEVEL_MEM_DEBUG 86 #define SMOP_REFERENCE(interpreter, object) \ 87 (fprintf(stderr,"[32mSMOP_REFERENCE[0m(%p) at %s line %d file %s\n",object,__func__,__LINE__,__FILE__),\ 88 (((SMOP__ResponderInterface*)(((SMOP__Object*)object)->RI)?(((SMOP__Object*)object)->RI):((SMOP__ResponderInterface*)object))->REFERENCE( (SMOP__Object*)interpreter, \ 89 ((SMOP__ResponderInterface*)(((SMOP__Object*)object)->RI)?(((SMOP__Object*)object)->RI):((SMOP__ResponderInterface*)object)), \ 90 (SMOP__Object*)object \ 91 ))) 92 93 #define SMOP_RELEASE(interpreter, object) \ 94 (fprintf(stderr,"[31mSMOP_RELEASE[0m(%p) at %s line %d file %s\n",object,__func__,__LINE__,__FILE__), \ 95 (((SMOP__ResponderInterface*)(((SMOP__Object*)object)->RI)?(((SMOP__Object*)object)->RI):((SMOP__ResponderInterface*)object))->RELEASE( (SMOP__Object*)interpreter, \ 96 ((SMOP__ResponderInterface*)(((SMOP__Object*)object)->RI)?(((SMOP__Object*)object)->RI):((SMOP__ResponderInterface*)object)), \ 97 (SMOP__Object*)object \ 98 ))) 99 #else 85 100 #define SMOP_REFERENCE(interpreter, object) \ 86 101 (((SMOP__ResponderInterface*)(((SMOP__Object*)object)->RI)?(((SMOP__Object*)object)->RI):((SMOP__ResponderInterface*)object))->REFERENCE( (SMOP__Object*)interpreter, \ … … 88 103 (SMOP__Object*)object \ 89 104 )) 90 91 105 #define SMOP_RELEASE(interpreter, object) \ 92 106 (((SMOP__ResponderInterface*)(((SMOP__Object*)object)->RI)?(((SMOP__Object*)object)->RI):((SMOP__ResponderInterface*)object))->RELEASE( (SMOP__Object*)interpreter, \ … … 94 108 (SMOP__Object*)object \ 95 109 )) 110 #endif 96 111 97 112 -
v6/smop/src/smop_s1p_io.ri
r22270 r22274 31 31 printf("%.*s",len,str); 32 32 } else { 33 fprintf(stderr,"unsupported object (%s) passed to S1P::IO.print\n",SMOP_RI(obj)->id);33 printf("unsupported object %p (%s) passed to S1P::IO.print\n",obj,SMOP_RI(obj)->id); 34 34 } 35 35
