Skip to content

Commit

Permalink
- division.h: switch __FILE__ and __LINE__ in DIVISION macro as they …
Browse files Browse the repository at this point in the history
…are expected by division_error function.

git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@11332 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Mar 7, 2012
1 parent 3588d1c commit 44cf4ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SimulationRuntime/c/util/division.h
Expand Up @@ -35,7 +35,7 @@

#include "openmodelica.h"

#define DIVISION(a,b,c) (((b) != 0) ? ((a) / (b)) : ((a) / division_error(b, c, __LINE__, __FILE__)))
#define DIVISION(a,b,c) (((b) != 0) ? ((a) / (b)) : ((a) / division_error(b, c, __FILE__, __LINE__)))


modelica_real division_error(modelica_real b, const char* division_str, const char* file, long line);
Expand Down

0 comments on commit 44cf4ed

Please sign in to comment.