예제 #1
0
파일: trap.c 프로젝트: Protovision/io-lua
int	trap_CheckFile(lua_State *s)
{
	const char *path;

	trap_args(s, "CheckFile", "s", &path);
	lua_pushboolean(s, sys_exists(datapath(path)));
	return 1;
}
예제 #2
0
파일: Sys.cpp 프로젝트: Draknek/hxcpp
/**
	file_exists : string -> bool
	<doc>Deprecated : use sys_exists instead.</doc>
**/
static value file_exists( value path ) {
	gc_enter_blocking();
	bool result =  sys_exists(path);
	gc_exit_blocking();
	return alloc_bool(result);
}
예제 #3
0
파일: sys.c 프로젝트: exaphaser/neko_mod
/**
	file_exists : string -> bool
	<doc>Deprecated : use sys_exists instead.</doc>
**/
static value file_exists( value path ) {
	return sys_exists(path);
}