Skip to content

Commit 0a17708

Browse files
committed
help windows DAS_RT_API
1 parent 9a08033 commit 0a17708

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+665
-635
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ MACRO(SETUP_LIBDASCRIPT library shared_lib)
916916
${RUNTIME_SRCS}
917917
src/stubs/simulate_stub.cpp
918918
)
919-
TARGET_COMPILE_DEFINITIONS(${library}_runtime PRIVATE DAS_EXPORTS=1 DAS_MOD_EXPORTS=1)
919+
TARGET_COMPILE_DEFINITIONS(${library}_runtime PRIVATE DAS_RT_EXPORTS=1 DAS_MOD_EXPORTS=1)
920920
TARGET_COMPILE_DEFINITIONS(${library}_runtime PUBLIC DAS_ENABLE_DLL=1)
921921
target_include_directories(${library}_runtime PRIVATE
922922
${DAS_SMMALLOC_DIR}

include/daScript/ast/ast.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ namespace das
8181

8282
// [annotation (value,value,...,value)]
8383
// or [annotation (key=value,key,value,...,key=value)]
84-
struct DAS_API AnnotationArgument {
84+
struct DAS_RT_API AnnotationArgument {
8585
Type type; // only tInt, tFloat, tBool, and tString are allowed
8686
string name;
8787
string sValue;
@@ -114,7 +114,7 @@ namespace das
114114

115115
typedef vector<AnnotationArgument> AnnotationArguments;
116116

117-
struct DAS_API AnnotationArgumentList : AnnotationArguments {
117+
struct DAS_RT_API AnnotationArgumentList : AnnotationArguments {
118118
const AnnotationArgument * find ( const string & name, Type type ) const;
119119
bool getBoolOption(const string & name, bool def = false) const;
120120
int32_t getIntOption(const string & name, int32_t def = false) const;
@@ -123,7 +123,7 @@ namespace das
123123
void serialize ( AstSerializer & ser );
124124
};
125125

126-
struct DAS_API Annotation : BasicAnnotation {
126+
struct DAS_RT_API Annotation : BasicAnnotation {
127127
Annotation ( const string & n, const string & cpn = "" ) : BasicAnnotation(n,cpn) {}
128128
virtual ~Annotation() {}
129129
virtual void seal( Module * m ) { module = m; }
@@ -140,7 +140,7 @@ namespace das
140140
Module * module = nullptr;
141141
};
142142

143-
struct DAS_API AnnotationDeclaration : ptr_ref_count {
143+
struct DAS_RT_API AnnotationDeclaration : ptr_ref_count {
144144
AnnotationPtr annotation;
145145
AnnotationArgumentList arguments;
146146
LineInfo at;
@@ -158,7 +158,7 @@ namespace das
158158

159159
AnnotationList cloneAnnotationList ( const AnnotationList & list );
160160

161-
class DAS_API Enumeration : public ptr_ref_count {
161+
class DAS_RT_API Enumeration : public ptr_ref_count {
162162
public:
163163
struct EnumEntry {
164164
string name;
@@ -202,7 +202,7 @@ namespace das
202202
#endif
203203
};
204204

205-
class DAS_API Structure : public ptr_ref_count {
205+
class DAS_RT_API Structure : public ptr_ref_count {
206206
public:
207207
struct FieldDeclaration {
208208
string name;
@@ -334,7 +334,7 @@ namespace das
334334
#endif
335335
};
336336

337-
struct DAS_API Variable : ptr_ref_count {
337+
struct DAS_RT_API Variable : ptr_ref_count {
338338
VariablePtr clone() const;
339339
string getMangledName() const;
340340
uint64_t getMangledNameHash() const;
@@ -435,7 +435,7 @@ namespace das
435435
struct ExprBlock;
436436
struct ExprCallFunc;
437437

438-
struct DAS_API FunctionAnnotation : Annotation {
438+
struct DAS_RT_API FunctionAnnotation : Annotation {
439439
FunctionAnnotation ( const string & n ) : Annotation(n) {}
440440
virtual bool rtti_isFunctionAnnotation() const override { return true; }
441441
virtual bool apply ( const FunctionPtr & func, ModuleGroup & libGroup,
@@ -634,7 +634,7 @@ namespace das
634634
smart_ptr<Structure> structureType;
635635
};
636636

637-
struct DAS_API Expression : ptr_ref_count {
637+
struct DAS_RT_API Expression : ptr_ref_count {
638638
Expression() = default;
639639
Expression(const LineInfo & a) : at(a) {}
640640
string describe() const;
@@ -755,7 +755,7 @@ namespace das
755755
#pragma warning(push)
756756
#pragma warning(disable:4324)
757757
#endif
758-
struct DAS_API ExprConst : Expression {
758+
struct DAS_RT_API ExprConst : Expression {
759759
ExprConst ( ) : baseType(Type::none) { __rtti = "ExprConst"; }
760760
ExprConst ( Type t ) : baseType(t) { __rtti = "ExprConst"; }
761761
ExprConst ( const LineInfo & a, Type t ) : Expression(a), baseType(t) { __rtti = "ExprConst"; }
@@ -830,7 +830,7 @@ namespace das
830830
InferHistory(const LineInfo & a, const FunctionPtr & p) : at(a), func(p.get()) {}
831831
void serialize ( AstSerializer & ser );
832832
};
833-
class DAS_API Function : public ptr_ref_count {
833+
class DAS_RT_API Function : public ptr_ref_count {
834834
public:
835835
enum class DescribeExtra { no, yes };
836836
enum class DescribeModule { no, yes };
@@ -1030,7 +1030,7 @@ namespace das
10301030
string getAotHashComment ( const Function * fun );
10311031
uint64_t getVariableListAotHash ( const vector<const Variable *> & globs, uint64_t initHash );
10321032

1033-
class DAS_API BuiltInFunction : public Function {
1033+
class DAS_RT_API BuiltInFunction : public Function {
10341034
public:
10351035
BuiltInFunction ( const char *fn, const char * fnCpp );
10361036
virtual string getAotBasicName() const override {
@@ -1129,7 +1129,7 @@ namespace das
11291129

11301130
bool isValidBuiltinName ( const string & name, bool canPunkt = false );
11311131

1132-
class DAS_API Module {
1132+
class DAS_RT_API Module {
11331133
public:
11341134
Module ( const string & n = "" );
11351135
void promoteToBuiltin(const FileAccessPtr & access);
@@ -1338,7 +1338,7 @@ namespace das
13381338
virtual ModuleAotType aotRequire ( TextWriter & ) const { return ModuleAotType::cpp; }
13391339
};
13401340

1341-
class DAS_API ModuleLibrary {
1341+
class DAS_RT_API ModuleLibrary {
13421342
friend class Module;
13431343
friend class Program;
13441344
public:
@@ -1377,14 +1377,14 @@ namespace das
13771377
Module * thisModule = nullptr;
13781378
};
13791379

1380-
struct DAS_API ModuleGroupUserData {
1380+
struct DAS_RT_API ModuleGroupUserData {
13811381
ModuleGroupUserData ( const string & n ) : name(n) {}
13821382
virtual ~ModuleGroupUserData() {}
13831383
string name;
13841384
};
13851385
typedef shared_ptr<ModuleGroupUserData> ModuleGroupUserDataPtr;
13861386

1387-
class DAS_API ModuleGroup : public ModuleLibrary {
1387+
class DAS_RT_API ModuleGroup : public ModuleLibrary {
13881388
public:
13891389
virtual ~ModuleGroup();
13901390
ModuleGroupUserData * getUserData ( const string & dataName ) const;
@@ -1463,7 +1463,7 @@ namespace das
14631463
string name;
14641464
};
14651465

1466-
class DAS_API DebugInfoHelper : public ptr_ref_count {
1466+
class DAS_RT_API DebugInfoHelper : public ptr_ref_count {
14671467
public:
14681468
DebugInfoHelper () { debugInfo = make_shared<DebugInfoAllocator>(); }
14691469
DebugInfoHelper ( const shared_ptr<DebugInfoAllocator> & di ) : debugInfo(di) {}
@@ -1860,7 +1860,7 @@ namespace das
18601860
vector<pair<string, string>> paths; // from -> to
18611861
};
18621862

1863-
struct DAS_API daScriptEnvironment {
1863+
struct DAS_RT_API daScriptEnvironment {
18641864
ProgramPtr g_Program;
18651865
bool g_isInAot = false;
18661866
Module * modules = nullptr;
@@ -1892,7 +1892,7 @@ namespace das
18921892
inline static DAS_THREAD_LOCAL(daScriptEnvironment *) owned;
18931893
};
18941894

1895-
struct DAS_API daScriptEnvironmentGuard {
1895+
struct DAS_RT_API daScriptEnvironmentGuard {
18961896
das::daScriptEnvironment *initialBound;
18971897
das::daScriptEnvironment *initialOwned;
18981898

include/daScript/ast/ast_aot_cpp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ namespace das {
6767
* @param cppOutputDir output directory where context will be created
6868
* @param standaloneContextName class name
6969
*/
70-
DAS_API void runStandaloneVisitor(ProgramPtr program, const string& cppOutputDir, const StandaloneContextCfg &cfg);
70+
DAS_RT_API void runStandaloneVisitor(ProgramPtr program, const string& cppOutputDir, const StandaloneContextCfg &cfg);
7171
}
7272

7373
#endif //DAS_AST_AOT_CPP_H

0 commit comments

Comments
 (0)