コード例 #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);
}