< prev index next >
src/java.desktop/share/native/common/awt/debug/debug_assert.c
Print this page
rev 52622 : 8214120: [REDO] Fix sun.awt.nativedebug on X11 platforms
*** 1,7 ****
/*
! * Copyright (c) 1999, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 31,41 ****
MAX_ASSERT_MSG = 255+FILENAME_MAX+1
};
static DASSERT_CALLBACK PfnAssertCallback = NULL;
! void DAssert_Impl(const char *msg, const char * filename, int linenumber) {
if (PfnAssertCallback != NULL) {
(*PfnAssertCallback)(msg, filename, linenumber);
} else {
fprintf(stderr, "Assert fail in file %s, line %d\n\t%s\n", filename, linenumber, msg);
fflush(stderr);
--- 31,43 ----
MAX_ASSERT_MSG = 255+FILENAME_MAX+1
};
static DASSERT_CALLBACK PfnAssertCallback = NULL;
! /* JNIEXPORT because this function is also called from libawt_xawt */
! JNIEXPORT void JNICALL
! DAssert_Impl(const char *msg, const char * filename, int linenumber) {
if (PfnAssertCallback != NULL) {
(*PfnAssertCallback)(msg, filename, linenumber);
} else {
fprintf(stderr, "Assert fail in file %s, line %d\n\t%s\n", filename, linenumber, msg);
fflush(stderr);
< prev index next >