~evantj/hare-raylib

7076bf65657acace2880e56c55fdd6268781ff0f — Evan Johnston 1 year, 4 months ago a04db96
use error assertion operator on strings::fromc
1 files changed, 1 insertions(+), 1 deletions(-)

M hare-raylib.py
M hare-raylib.py => hare-raylib.py +1 -1
@@ 156,7 156,7 @@ def wrapper(function):
                args += [name(p)]
    result = "%s(%s)" % ("_" + function["name"], ', '.join(args))
    if is_string(function["returnType"]):
        result = "strings::fromc(" + result + ")"
        result = "strings::fromc(" + result + ")!"
    if function["returnType"] == "bool":
        result = result + " == c_bool::TRUE"
    print("\treturn %s;" % result)