source: trunk/Python/src/tests_jmodelica/files/Modelica/Resources/src/evaluatorTests.c @ 13700

Last change on this file since 13700 was 13700, checked in by Christian Andersson, 2 months ago

Merged the evaluator branch back to trunk. Related to ticket:5837

File size: 581 bytes
Line 
1#include "evaluatorTests.h"
2
3DllExport double f_d_i(int a) {
4    return 3.0*(double)a;
5}
6
7DllExport double f_d_idd(int a, double b, double c) {
8    return b*c + 3.0*(double)a;
9}
10
11DllExport int f_i_ii(int a, int b) {
12    return a + b;
13}
14
15DllExport void f___iddpR_ddddddddddd_(int a, double b, double c, R_ddddddddddd* d) {
16    d->member_0 = (double)a;
17    d->member_1 = b;
18    d->member_2 = c;
19    d->member_3 = 3.0;
20    d->member_4 = 4.0;
21    d->member_5 = 5.0;
22    d->member_6 = 6.0;
23    d->member_7 = 7.0;
24    d->member_8 = 8.0;
25    d->member_9 = 9.0;
26    d->member_10 = 10.0;
27}
Note: See TracBrowser for help on using the repository browser.