@@ -11,27 +11,27 @@ using namespace libscratchcpp;
1111
1212extern " C"
1313{
14- double llvm_random (ExecutionContext *ctx, ValueData *from, ValueData *to)
14+ LIBSCRATCHCPP_EXPORT double llvm_random (ExecutionContext *ctx, ValueData *from, ValueData *to)
1515 {
1616 return value_isInt (from) && value_isInt (to) ? ctx->rng ()->randint (value_toLong (from), value_toLong (to)) : ctx->rng ()->randintDouble (value_toDouble (from), value_toDouble (to));
1717 }
1818
19- double llvm_random_double (ExecutionContext *ctx, double from, double to)
19+ LIBSCRATCHCPP_EXPORT double llvm_random_double (ExecutionContext *ctx, double from, double to)
2020 {
2121 return value_doubleIsInt (from) && value_doubleIsInt (to) ? ctx->rng ()->randint (from, to) : ctx->rng ()->randintDouble (from, to);
2222 }
2323
24- int64_t llvm_random_int64 (ExecutionContext *ctx, int64_t from, int64_t to)
24+ LIBSCRATCHCPP_EXPORT int64_t llvm_random_int64 (ExecutionContext *ctx, int64_t from, int64_t to)
2525 {
2626 return ctx->rng ()->randint (from, to);
2727 }
2828
29- double llvm_random_bool (ExecutionContext *ctx, bool from, bool to)
29+ LIBSCRATCHCPP_EXPORT double llvm_random_bool (ExecutionContext *ctx, bool from, bool to)
3030 {
3131 return ctx->rng ()->randint (from, to);
3232 }
3333
34- StringPtr **llvm_get_string_array (ExecutionContext *ctx, function_id_t functionId)
34+ LIBSCRATCHCPP_EXPORT StringPtr **llvm_get_string_array (ExecutionContext *ctx, function_id_t functionId)
3535 {
3636 return static_cast <LLVMExecutionContext *>(ctx)->getStringArray (functionId);
3737 }
0 commit comments