Changes for Both New and Old Naming Schemes

内容表

For both new and old naming schemes some modifications are needed.

Namespace maxon

The namespace c4d_misc has been renamed to maxon . Note that if you set the legacy define ( __LEGACY_API ) you can still use c4d_misc .
The directive using namespace maxon; ( using namespace c4d_misc; in legacy mode) will not work anymore as Int and maxon::Int ( c4d_misc::Int in legacy mode) are ambiguous.
Instead an enclosing namespace maxon { } ( namespace c4d_misc { } in legacy mode) or a prefix maxon:: ( c4d_misc:: in legacy mode) should be used.

Clamp()

Any use of Clamp() in existing code needs to be changed to maxon::ClampValue() .

注意
Maxon::ClampValue() has a different parameter order than Clamp() . Order now follows Peachey's definition.

Mac OS X

On Mac OS X any system specific carbon.h include has to be changed to include osx_include.h instead. The header makes sure there is no collision of UInt .

调试

c4d_debug.txt is gone. In release builds you can activate the debug memory model by using the command line parameter -g_alloc=debug (no spaces in-between).
On Windows the console window will open (and stay open if there were any leaks).

Copyright  © 2014-2025 乐数软件    

工业和信息化部: 粤ICP备14079481号-1