Phasor 2.2.0
Stack VM based Programming Language
Loading...
Searching...
No Matches
binding_generator.cpp File Reference
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <algorithm>
Include dependency graph for binding_generator.cpp:

Go to the source code of this file.

Classes

struct  Param
struct  Function

Functions

bool isHandleType (const std::string &type)
bool isSupportedParam (const std::string &type)
std::string trim (const std::string &str)
Function parseFunction (const std::string &line, int lineNumber)
void generateWrapper (const Function &f, std::ostream &out)
int main (int argc, char **argv)

Variables

const std::vector< std::string > PATCHES

Function Documentation

◆ generateWrapper()

void generateWrapper ( const Function & f,
std::ostream & out )

Definition at line 103 of file binding_generator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isHandleType()

bool isHandleType ( const std::string & type)

Definition at line 28 of file binding_generator.cpp.

Here is the caller graph for this function:

◆ isSupportedParam()

bool isSupportedParam ( const std::string & type)

Definition at line 34 of file binding_generator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( int argc,
char ** argv )

Definition at line 172 of file binding_generator.cpp.

Here is the call graph for this function:

◆ parseFunction()

Function parseFunction ( const std::string & line,
int lineNumber )

Definition at line 56 of file binding_generator.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ trim()

std::string trim ( const std::string & str)

Definition at line 47 of file binding_generator.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ PATCHES

const std::vector<std::string> PATCHES
Initial value:
= {
"#pragma warning(disable:4996)",
"#pragma warning(disable:4244)"
}

Definition at line 8 of file binding_generator.cpp.