https://bitbucket.org/daniel_fort/magic-lantern
Raw File
Tip revision: 30d5b8becec8ff31ee76db5b25ddc81957653816 authored by hudson@kremvax on 18 April 2010, 17:20:33 UTC
More explicit logging of unknown events
Tip revision: 30d5b8b
pymite-helpers.h
/** \file
 * PyMite wrappers
 */
#ifndef _pymite_h_
#define _pymite_h_

#include "pm.h"

#define PM_ARG_INT(num) \
	( { \
		pPmObj_t pn = NATIVE_GET_LOCAL(num); \
		if( OBJ_GET_TYPE(pn) != OBJ_TYPE_INT ) \
		{ \
			PM_RAISE( retval, PM_RET_EX_TYPE ); \
			return retval; \
		} \
		((pPmInt_t)pn)->val; \
	} )
		
#endif
back to top