Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Macros | Functions
JSInterface_VFS.cpp File Reference
#include "precompiled.h"
#include <sstream>
#include "ps/CStr.h"
#include "ps/Filesystem.h"
#include "scripting/ScriptingHost.h"
#include "scripting/JSConversions.h"
#include "ps/scripting/JSInterface_VFS.h"
#include "lib/file/vfs/vfs_util.h"

Go to the source code of this file.

Classes

struct  BuildDirEntListState
 

Macros

#define JS_CHECK_FILE_ERR(err)
 

Functions

static Status BuildDirEntListCB (const VfsPath &pathname, const CFileInfo &fileINfo, uintptr_t cbData)
 

Macro Definition Documentation

#define JS_CHECK_FILE_ERR (   err)
Value:
/* this is liable to happen often, so don't complain */\
{\
JS_SET_RVAL(cx, vp, JSVAL_NULL);\
return JS_TRUE;\
}\
/* unknown failure. we return an error (akin to an exception in JS) that
stops the script to make sure this error is noticed. */\
else if (err < 0)\
return JS_FALSE;\
/* else: success */
const Status VFS_FILE_NOT_FOUND
Definition: vfs.h:37

Definition at line 31 of file JSInterface_VFS.cpp.

Function Documentation

static Status BuildDirEntListCB ( const VfsPath pathname,
const CFileInfo fileINfo,
uintptr_t  cbData 
)
static

Definition at line 69 of file JSInterface_VFS.cpp.