src/java.desktop/share/native/common/awt/debug/debug_assert.h
changeset 52636 f52ea62d68cc
parent 47216 71c04702a3d5
equal deleted inserted replaced
52635:6938c8ef179a 52636:f52ea62d68cc
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    52         }
    52         }
    53 
    53 
    54 /* prototype for assert function */
    54 /* prototype for assert function */
    55 typedef void (*DASSERT_CALLBACK)(const char * msg, const char * file, int line);
    55 typedef void (*DASSERT_CALLBACK)(const char * msg, const char * file, int line);
    56 
    56 
    57 extern void DAssert_Impl(const char * msg, const char * file, int line);
    57 /* JNIEXPORT because this function is also called from libawt_xawt */
       
    58 JNIEXPORT void JNICALL DAssert_Impl(const char * msg, const char * file, int line);
    58 extern void DAssert_SetCallback( DASSERT_CALLBACK pfn );
    59 extern void DAssert_SetCallback( DASSERT_CALLBACK pfn );
    59 
    60 
    60 #else /* DEBUG not defined */
    61 #else /* DEBUG not defined */
    61 
    62 
    62 #define DASSERT(_expr)
    63 #define DASSERT(_expr)