PhoenixInkscape  2.0.0
Generate multiple png files with svg inkscape files
main.cpp File Reference
#include <iostream>
#include "phoenix_assert.h"
#include "phoenix_env.h"
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 
void testEnv ()
 Test the string filename function. More...
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 21 of file main.cpp.

21  {
22  testEnv();
23  return 0;
24 }
void testEnv()
Test the string filename function.
Definition: main.cpp:14

References testEnv().

+ Here is the call graph for this function:

◆ testEnv()

void testEnv ( )

Test the string filename function.

Definition at line 14 of file main.cpp.

14  {
15  phoenix_assert(phoenix_getenv("UNEXISTING_VARIABLE") == "");
16  phoenix_assert(phoenix_setenv("SomeExistingVariable", "42"));
17  phoenix_assert(phoenix_getenv("SomeExistingVariable") == "42");
18  phoenix_assert(phoenix_unsetenv("SomeExistingVariable"));
19 }
#define phoenix_assert(isOk)
bool phoenix_setenv(const PString &name, const PString &value, bool overwrite)
Set a environment variable.
Definition: phoenix_env.cpp:25
bool phoenix_unsetenv(const PString &name)
Unset a environment variable.
Definition: phoenix_env.cpp:33
PString phoenix_getenv(const PString &varName)
Get the value of the given environment variable.
Definition: phoenix_env.cpp:15

References phoenix_assert, phoenix_getenv(), phoenix_setenv(), and phoenix_unsetenv().

Referenced by main().

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