Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 590a7fc

Browse files
committed
[[ Cleanup ]] Add more missing MC_DLLEXPORT annotations.
1 parent 16ffa92 commit 590a7fc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

libscript/src/module-array.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ extern "C" MC_DLLEXPORT void MCArrayEvalEmpty(MCArrayRef& r_output)
141141
r_output = MCValueRetain(kMCEmptyArray);
142142
}
143143

144-
extern "C" bool MCArrayRepeatForEachElement(void*& x_iterator, MCValueRef& r_iterand, MCArrayRef p_array)
144+
extern "C" bool MC_DLLEXPORT MCArrayRepeatForEachElement(void*& x_iterator, MCValueRef& r_iterand, MCArrayRef p_array)
145145
{
146146
MCValueRef t_value;
147147
// If this is a numerical array, do it in order
@@ -173,7 +173,7 @@ extern "C" bool MCArrayRepeatForEachElement(void*& x_iterator, MCValueRef& r_ite
173173
return true;
174174
}
175175

176-
extern "C" bool MCArrayRepeatForEachKey(void*& x_iterator, MCStringRef& r_iterand, MCArrayRef p_array)
176+
extern "C" bool MC_DLLEXPORT MCArrayRepeatForEachKey(void*& x_iterator, MCStringRef& r_iterand, MCArrayRef p_array)
177177
{
178178
MCNameRef t_key;
179179
MCValueRef t_value;
@@ -189,4 +189,4 @@ extern "C" bool MCArrayRepeatForEachKey(void*& x_iterator, MCStringRef& r_iteran
189189
x_iterator = (void *)(t_offset);
190190

191191
return true;
192-
}
192+
}

libscript/src/script-instance.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2172,7 +2172,7 @@ bool MCScriptCallHandlerOfInstanceInternal(MCScriptInstanceRef self, MCScriptHan
21722172

21732173
////////////////////////////////////////////////////////////////////////////////
21742174

2175-
extern "C" bool MCScriptBuiltinRepeatCounted(uinteger_t *x_count)
2175+
extern "C" bool MC_DLLEXPORT MCScriptBuiltinRepeatCounted(uinteger_t *x_count)
21762176
{
21772177
if (*x_count == 0)
21782178
return false;
@@ -2181,22 +2181,22 @@ extern "C" bool MCScriptBuiltinRepeatCounted(uinteger_t *x_count)
21812181
return true;
21822182
}
21832183

2184-
extern "C" bool MCScriptBuiltinRepeatUpToCondition(double p_counter, double p_limit)
2184+
extern "C" bool MC_DLLEXPORT MCScriptBuiltinRepeatUpToCondition(double p_counter, double p_limit)
21852185
{
21862186
return p_counter <= p_limit;
21872187
}
21882188

2189-
extern "C" double MCScriptBuiltinRepeatUpToIterate(double p_counter, double p_step)
2189+
extern "C" double MC_DLLEXPORT MCScriptBuiltinRepeatUpToIterate(double p_counter, double p_step)
21902190
{
21912191
return p_counter + p_step;
21922192
}
21932193

2194-
extern "C" bool MCScriptBuiltinRepeatDownToCondition(double p_counter, double p_limit)
2194+
extern "C" bool MC_DLLEXPORT MCScriptBuiltinRepeatDownToCondition(double p_counter, double p_limit)
21952195
{
21962196
return p_counter >= p_limit;
21972197
}
21982198

2199-
extern "C" double MCScriptBuiltinRepeatDownToIterate(double p_counter, double p_step)
2199+
extern "C" double MC_DLLEXPORT MCScriptBuiltinRepeatDownToIterate(double p_counter, double p_step)
22002200
{
22012201
return p_counter + p_step;
22022202
}

0 commit comments

Comments
 (0)