WebAssembly01--util.h

内容简要 请使用者自行优化

#ifndef EM_PORT_API
#	if defined(__EMSCRIPTEN__)
#		include <emscripten.h>
#		if defined(__cplusplus)
#			define EM_PORT_API(rettype) extern "C" rettype EMSCRIPTEN_KEEPALIVE
#		else
#			define EM_PORT_API(rettype) rettype EMSCRIPTEN_KEEPALIVE
#		endif
#	else
#		if defined(__cplusplus)
#			define EM_PORT_API(rettype) extern "C" rettype
#		else
#			define EM_PORT_API(rettype) rettype
#		endif
#	endif
#endif

#include<stdio.h>
#include<emscripten.h>
#include<stdlib.h>
#include<string.h>
posted @ 2022-10-12 11:00  simp00  阅读(27)  评论(0编辑  收藏  举报