⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cplusinit.cpp

📁 VXWORKS源代码
💻 CPP
字号:
/* cplusInit.C - initialize run-time support for C++  *//* Copyright 1993 Wind River Systems, Inc. */#include "copyright_wrs.h"/*modification history--------------------02h,19mar02,sn   SPR 71699 - decouple from cplusUsr.o; general clean up02g,06nov01,sn   include <exception> rather than prototyping set_terminate                 (fixed Diab build failure)02f,11oct00,sn   break out INCLUDE_CPLUS_LIBGCC as a seperate (but required!)                  component02e,11oct98,ms   reworked 02d fix, since it was causing bootrom builds to fail02d,08oct98,sn   moved defn of cplusXtorStrategy from cplusUsr.cpp to here02c,17sep98,ms   removed force-links of loader support modules02b,16jan98,sn   add force-link of 'new-style' new/delete02a,15jan98,sn   add force-link of exception handling/RTTI01f,20jun95,srh  remove force-link of iostreams.01e,18jun95,srh  change cplusCfront to cplusCore.01d,18jun93,jdi  more doc cleanup.01c,03jun93,srh  doc cleanup01b,23apr93,srh  implemented new force-link/initialization scheme01a,23apr93,srh  written.*//*DESCRIPTIONThis module defines cplusLibInit, and implements a scheme that forcesmost of the WindC++ run-time support to be linked with VxWorks.Initialization is actually performed by cplusLibMinInit(), which isdefined elsewhere.NOMANUAL*//* Includes */#include "vxWorks.h"#include "cplusLib.h"#include <exception>/* Defines *//* Globals *//* Locals */extern char __cplusCore_o;extern char __cplusStr_o;extern char __cplusXtors_o;char * __cplusObjFiles [] =    {    & __cplusCore_o,    & __cplusStr_o,    & __cplusXtors_o    };/* Forward declarations *//********************************************************************************* cplusLibInit - initialize the C++ library (C++)** This routine initializes the C++ library and forces all C++ run-time support* to be linked with the bootable VxWorks image.  If INCLUDE_CPLUS is defined* in configAll.h, cplusLibInit() is called automatically from the root task,* usrRoot(), in usrConfig.c.** RETURNS: OK or ERROR.*/extern void cplusTerminate ();extern "C" STATUS cplusLibInit (void)    {/* We do this here to avoid pulling in exception handling code with * INCLUDE_CPLUS_MIN */    set_terminate (cplusTerminate);    return cplusLibMinInit ();    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -