File: Main.h

package info (click to toggle)
storm-lang 0.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,028 kB
  • sloc: ansic: 261,471; cpp: 140,432; sh: 14,891; perl: 9,846; python: 2,525; lisp: 2,504; asm: 860; makefile: 678; pascal: 70; java: 52; xml: 37; awk: 12
file content (26 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

/**
 * Include this file from a file in the shared library, and use the macro
 * SHARED_LIB_ENTRY_POINT() to declare de shared library's entry point.
 */

#include "Engine.h"
#include "Core/EngineFwd.h"
#include "Core/SharedLib.h"
#include "Core/Gen/CppTypes.h"

#define SHARED_LIB_ENTRY_POINT()										\
	extern "C" SHARED_EXPORT bool SHARED_LIB_ENTRY(const storm::SharedLibStart *params, storm::SharedLibInfo *info) { \
		return storm::sharedLibEntry(*params, *info);					\
	}


namespace storm {

	/**
	 * Entry-point for the shared library.
	 */
	bool sharedLibEntry(const SharedLibStart &params, SharedLibInfo &out);

}