March 2000
Intermediate to advanced
576 pages
18h 13m
English
$NoDefine Compiler Directive
{$NoDefine Identifier}Local
The $NoDefine
compiler directive prevents C++
Builder from writing the definition of
Identifier to the unit’s
.hpp file. Unlike
$ExternalSym, the compiler assumes that you will
provide an alternate definition of
Identifier by using the
$HppEmit directive. When you do so, you must be
sure to define the symbol in the unit’s
namespace.
unit Complex;
interface
type
TComplex = record
Real, Imag: Double;
end;
{NoDefine TComplex}
(*$HppEmit 'namespace Complex {*)
(*$HppEmit ' class TComplex {' *)
(*$HppEmit ' public: ' *)
(*$HppEmit ' TComplex() : m_real(0), m_imag(0) {} ' *)
(*$HppEmit ' private: ' *)
(*$HppEmit ' double m_real, m_imag; ' *)
(*$HppEmit ' }; ' *)
(*$HppEmit '};' *)| $ExternalSym Compiler Directive, $HppEmit Compiler Directive, $NoInclude Compiler Directive |
Read now
Unlock full access