예제 #1
0
static cxInt cxStreamLuaMakeFile(lua_State *L)
{
    cxConstChars file = luaL_checkstring(L, 1);
    cxStream this = cxFileStreamCreate(file);
    CX_LUA_PUSH_OBJECT(this);
    return 1;
}
예제 #2
0
cxStr cxDocumentData(cxConstChars file)
{
    cxStream stream = cxFileStreamCreate(file, true);
    return CX_CALL(stream, AllBytes, CX_M(cxStr));
}