#ifndef _INCLUDE_TLIB_NATIVE_STUBS_H_ #define _INCLUDE_TLIB_NATIVE_STUBS_H_ #include #include #include "primitives.h" /* avoid a missing return warning on compilers that care */ #if defined(__digital__) #pragma message disable (missingreturn) #elif defined(MIPSPRO_COMPILER) #pragma set woff 1116 #endif #define unimplemented(func, ret, args) \ ret func args { \ fputs( "unimplemented native method: " # func "\n", stderr ); \ exit(2); \ } #define identity(func, ret, args) ret func args { return x; } #endif /* !_INCLUDE_TLIB_NATIVE_STUBS_H_ */