mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-04-17 11:46:01 +08:00
Sync changes from upstream repository
Co-authored-by: Alain <alain@mcneel.com> Co-authored-by: Andrew Le Bihan <andy@mcneel.com> Co-authored-by: Bozo <bozo@mcneel.com> Co-authored-by: chuck <chuck@mcneel.com> Co-authored-by: Dale Fugier <dale@mcneel.com> Co-authored-by: Giulio Piacentino <giulio@mcneel.com> Co-authored-by: John Croudy <croudyj@gmail.com> Co-authored-by: Mikko Oksanen <mikko@mcneel.com> Co-authored-by: Pierre Cuvilliers <pierre@mcneel.com> Co-authored-by: Steve Baer <steve@mcneel.com>
This commit is contained in:
@@ -1,81 +1,81 @@
|
||||
/* $NoKeywords: $ */
|
||||
/*
|
||||
//
|
||||
// Copyright (c) 1993-2012 Robert McNeel & Associates. All rights reserved.
|
||||
// OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert
|
||||
// McNeel & Associates.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
|
||||
// ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
|
||||
// MERCHANTABILITY ARE HEREBY DISCLAIMED.
|
||||
//
|
||||
// For complete openNURBS copyright information see <http://www.opennurbs.org>.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////
|
||||
*/
|
||||
|
||||
#include "opennurbs.h"
|
||||
|
||||
#if !defined(ON_COMPILING_OPENNURBS)
|
||||
// This check is included in all opennurbs source .c and .cpp files to insure
|
||||
// ON_COMPILING_OPENNURBS is defined when opennurbs source is compiled.
|
||||
// When opennurbs source is being compiled, ON_COMPILING_OPENNURBS is defined
|
||||
// and the opennurbs .h files alter what is declared and how it is declared.
|
||||
#error ON_COMPILING_OPENNURBS must be defined when compiling opennurbs
|
||||
#endif
|
||||
|
||||
// opennurbs_dll.cpp : Defines the entry point for the Windows DLL application.
|
||||
//
|
||||
|
||||
#if defined(ON_RUNTIME_WIN) && defined(OPENNURBS_EXPORTS)
|
||||
|
||||
int APIENTRY DllMain( HANDLE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
{
|
||||
static int bRunning = 0;
|
||||
if ( !bRunning )
|
||||
{
|
||||
bRunning = true;
|
||||
}
|
||||
|
||||
switch( ul_reason_for_call )
|
||||
{
|
||||
|
||||
case DLL_PROCESS_ATTACH:
|
||||
ON_ClassId::IncrementMark(); // make sure each DLL that each process that
|
||||
// uses OpenNURBS has a unique mark.
|
||||
break;
|
||||
|
||||
// 16 August 2010 Dale Lear:
|
||||
// These generate too much noise in the output window
|
||||
//
|
||||
//case DLL_THREAD_ATTACH:
|
||||
// ::OutputDebugStringA("OpenNURBS DllMain() ul_reason_for_call = DLL_THREAD_ATTACH\n");
|
||||
// break;
|
||||
|
||||
//case DLL_THREAD_DETACH:
|
||||
// ::OutputDebugStringA("OpenNURBS DllMain() ul_reason_for_call = DLL_THREAD_DETACH\n");
|
||||
// break;
|
||||
|
||||
//case DLL_PROCESS_DETACH:
|
||||
// ::OutputDebugStringA("OpenNURBS DllMain() ul_reason_for_call = DLL_PROCESS_DETACH\n");
|
||||
// break;
|
||||
|
||||
//default:
|
||||
// ::OutputDebugStringA("OpenNURBS DllMain() ul_reason_for_call = ?\n");
|
||||
// break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// For testing crash handling in opennurbs.dll
|
||||
//
|
||||
|
||||
|
||||
#endif
|
||||
/* $NoKeywords: $ */
|
||||
/*
|
||||
//
|
||||
// Copyright (c) 1993-2012 Robert McNeel & Associates. All rights reserved.
|
||||
// OpenNURBS, Rhinoceros, and Rhino3D are registered trademarks of Robert
|
||||
// McNeel & Associates.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY.
|
||||
// ALL IMPLIED WARRANTIES OF FITNESS FOR ANY PARTICULAR PURPOSE AND OF
|
||||
// MERCHANTABILITY ARE HEREBY DISCLAIMED.
|
||||
//
|
||||
// For complete openNURBS copyright information see <http://www.opennurbs.org>.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////
|
||||
*/
|
||||
|
||||
#include "opennurbs.h"
|
||||
|
||||
#if !defined(ON_COMPILING_OPENNURBS)
|
||||
// This check is included in all opennurbs source .c and .cpp files to insure
|
||||
// ON_COMPILING_OPENNURBS is defined when opennurbs source is compiled.
|
||||
// When opennurbs source is being compiled, ON_COMPILING_OPENNURBS is defined
|
||||
// and the opennurbs .h files alter what is declared and how it is declared.
|
||||
#error ON_COMPILING_OPENNURBS must be defined when compiling opennurbs
|
||||
#endif
|
||||
|
||||
// opennurbs_dll.cpp : Defines the entry point for the Windows DLL application.
|
||||
//
|
||||
|
||||
#if defined(ON_RUNTIME_WIN) && defined(OPENNURBS_EXPORTS)
|
||||
|
||||
int APIENTRY DllMain( HANDLE hModule,
|
||||
DWORD ul_reason_for_call,
|
||||
LPVOID lpReserved
|
||||
)
|
||||
{
|
||||
static int bRunning = 0;
|
||||
if ( !bRunning )
|
||||
{
|
||||
bRunning = true;
|
||||
}
|
||||
|
||||
switch( ul_reason_for_call )
|
||||
{
|
||||
|
||||
case DLL_PROCESS_ATTACH:
|
||||
ON_ClassId::IncrementMark(); // make sure each DLL that each process that
|
||||
// uses OpenNURBS has a unique mark.
|
||||
break;
|
||||
|
||||
// 16 August 2010 Dale Lear:
|
||||
// These generate too much noise in the output window
|
||||
//
|
||||
//case DLL_THREAD_ATTACH:
|
||||
// ::OutputDebugStringA("OpenNURBS DllMain() ul_reason_for_call = DLL_THREAD_ATTACH\n");
|
||||
// break;
|
||||
|
||||
//case DLL_THREAD_DETACH:
|
||||
// ::OutputDebugStringA("OpenNURBS DllMain() ul_reason_for_call = DLL_THREAD_DETACH\n");
|
||||
// break;
|
||||
|
||||
//case DLL_PROCESS_DETACH:
|
||||
// ::OutputDebugStringA("OpenNURBS DllMain() ul_reason_for_call = DLL_PROCESS_DETACH\n");
|
||||
// break;
|
||||
|
||||
//default:
|
||||
// ::OutputDebugStringA("OpenNURBS DllMain() ul_reason_for_call = ?\n");
|
||||
// break;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// For testing crash handling in opennurbs.dll
|
||||
//
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user