Пример #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));
}