< prev index next >

src/jdk.incubator.jpackage/windows/native/libjpackage/SourceCodePos.h

Print this page

        

*** 21,34 **** * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ - #include <windows.h> ! extern "C" { ! BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, ! LPVOID lpvReserved) { ! return true; } ! } \ No newline at end of file --- 21,53 ---- * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA * or visit www.oracle.com if you need additional information or have any * questions. */ ! #ifndef SourceCodePos_h ! #define SourceCodePos_h ! ! // ! // Position in source code. ! // ! ! struct SourceCodePos ! { ! SourceCodePos(const char* fl, const char* fnc, int l): ! file(fl), func(fnc), lno(l) ! { } ! ! const char* file; ! const char* func; ! int lno; ! }; ! ! ! // Initializes SourceCodePos instance with the ! // information from the point of calling. ! #define JP_SOURCE_CODE_POS SourceCodePos(__FILE__, __FUNCTION__, __LINE__) ! ! ! #endif // #ifndef SourceCodePos_h
< prev index next >