代码搜索:predefined
找到约 1,203 项符合「predefined」的源代码
代码结果 1,203
www.eeworm.com/read/366702/2868314
c predefined-rtti-macro-2.c
// { dg-do compile }
// { dg-options "-fno-rtti" }
struct B { };
void f(B* bp)
{
bp =
#ifndef __GXX_RTTI
static_cast(0);
#endif
}
www.eeworm.com/read/366702/2868315
c predefined-rtti-macro-1.c
// { dg-do compile }
struct A { virtual ~A() { }; };
struct B : A { };
void f(B* bp)
{
bp =
#ifdef __GXX_RTTI
dynamic_cast(static_cast(0));
#endif
}