Files
kotlin-fork/experiments/translator-bc/kotstd/libc/assert_c.c
T
Vasily Levchenko d5a6c854dd translator-bc: is copy of translator, currently...
it was copied to inject byte code generation instead of llvm asm
via domestic interop library
2016-09-22 17:27:06 +03:00

9 lines
202 B
C

#include <stdlib.h>
#include <stdio.h>
void assert_c(int value) {
if (!value) {
printf("Exception in thread \"main\" java.lang.AssertionError: Assertion failed\n");
abort();
}
}