mirror of
https://github.com/Dasharo/zephyr.git
synced 2026-03-06 14:57:20 -08:00
subsystem: cleanup misc and make cpp a subsystem
Move a way from misc/ and put in its own subsystem to allow enhancements in the future and make it a core part of Zephyr, not just something misc. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
27
subsys/cpp/cpp_vtable.cpp
Normal file
27
subsys/cpp/cpp_vtable.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (c) 2015 Wind River Systems, Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/*
|
||||
* @file
|
||||
* @brief Stub for C++ virtual tables
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief basic virtual tables required for classes to build
|
||||
*
|
||||
*/
|
||||
|
||||
namespace __cxxabiv1 {
|
||||
class __class_type_info {
|
||||
virtual void dummy();
|
||||
};
|
||||
class __si_class_type_info {
|
||||
virtual void dummy();
|
||||
};
|
||||
void __class_type_info::dummy() { } // causes the vtable to get created here
|
||||
void __si_class_type_info::dummy() { } // causes the vtable to get created here
|
||||
};
|
||||
Reference in New Issue
Block a user