Skip to content

Commit 7fafa15

Browse files
committed
MathSAT wrapper: revert changes to CONF_RETURN to make the wrapper not more complex and instead handle better error messages in JavaSMT directly
1 parent e526cc0 commit 7fafa15

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • lib/native/source/libmathsat5j/includes

lib/native/source/libmathsat5j/includes/defines.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -323,12 +323,7 @@ typedef jlong jjproof;
323323
typedef jlong jjconf;
324324
#define CONF_ARG(num) STRUCT_ARG(msat_config, num)
325325
#define CONF_ARG_VOID(num) STRUCT_ARG_VOID(msat_config, num)
326-
#define CONF_RETURN \
327-
if (retval.repr == NULL) { \
328-
throwException(jenv, "java/lang/IllegalArgumentException", "Invalid configuration. MathSAT returned null"); \
329-
} \
330-
return (jlong)((size_t)(retval.repr)); \
331-
}
326+
#define CONF_RETURN STRUCT_RETURN
332327

333328
typedef jlong jjterm;
334329
#define TERM_ARG(num) STRUCT_ARG(msat_term, num)

0 commit comments

Comments
 (0)