Premake Internals
Functions
premake.h File Reference

Program-wide constants and definitions. More...

#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
#include <stdlib.h>
#include <windows.h>
#include <stdint.h>

Functions

int premake_getEmbeddedResource (lua_State *L)
 
int premake_init (lua_State *L)
 
int premake_load_embedded_script (lua_State *L, const char *filename)
 
const buildin_mapping * premake_find_embedded_script (const char *filename)
 
int premake_locate_executable (lua_State *L, const char *argv0)
 
int premake_test_file (lua_State *L, const char *filename, int searchMask)
 

Detailed Description

Program-wide constants and definitions.

Author
Copyright (c) 2002-2015 Jason Perkins and the Premake project

Function Documentation

◆ premake_find_embedded_script()

const buildin_mapping* premake_find_embedded_script ( const char *  filename)

Locate a file in the embedded script index. If found, returns the contents of the file's script.

◆ premake_getEmbeddedResource()

int premake_getEmbeddedResource ( lua_State *  L)

Give the lua runtime raw access to embedded files.

◆ premake_init()

int premake_init ( lua_State *  L)

Initialize the Premake Lua environment.

◆ premake_load_embedded_script()

int premake_load_embedded_script ( lua_State *  L,
const char *  filename 
)

Load a script that was previously embedded into the executable. If successful, a function containing the new script chunk is pushed to the stack, just like luaL_loadfile would do had the chunk been loaded from a file.

◆ premake_locate_executable()

int premake_locate_executable ( lua_State *  L,
const char *  argv0 
)

◆ premake_test_file()

int premake_test_file ( lua_State *  L,
const char *  filename,
int  searchMask 
)

Checks one or more of the standard script search locations to locate the specified file. If found, returns the discovered path to the script on the top of the Lua stack.