Skip to content

Declaration Standards

Purpose: Consistent coding standards across AudioLab

Overview

This directory defines how to write AudioLab code: naming, organization, declarations, and cross-platform considerations.

Files

Quick Reference

Naming

  • Classes: PascalCase
  • Interfaces: IPascalCase
  • Functions: snake_case
  • Members: snake_case_
  • Constants: UPPER_SNAKE_CASE
  • Files: snake_case.hpp

Header Includes

  1. Own header
  2. C stdlib
  3. C++ stdlib
  4. Third-party
  5. AudioLab
  6. Local

Forward Declarations

  • Pointer/reference: Forward declare
  • Value/inheritance: Full include

Exports

  • Public API: AUDIOLAB_API
  • Internal: No macro

Consistency is key. Follow these standards throughout the codebase.