Namespaces in the SDK

Namespaces in the SDK

Description

The CTR-SDK uses the following namespaces. Be sure to avoid name collisions.

Prefixes for Global Names

Functions that do not belong to a namespace have names that start with nn.

Example:

nngxInitialize

However, functions that are compatible with OpenGL ES use names that start with gl.

Example:

glDrawElements 

Constants and macros that do not belong to a namespace have names that start with NN_.

Example:

NN_LOG

Global Namespaces

The namespace nn is used for the C++ namespace. All API functions in the SDK belong to the nn namespace.

Example:

nn::os
nn::fnd
nn::fs::MountRom

Basic Types

As an exception to the above, basic type definitions are defined using their respective names in the global namespace.

Revision History

2011/12/12
Initial version.

CONFIDENTIAL