Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2787


Ignore:
Timestamp:
Mar 15, 2009, 3:24:37 PM (15 years ago)
Author:
rgrieder
Message:

Bugfix: _NDEBUG is never defined.

Location:
code/trunk/src/orxonox/objects/worldentities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/worldentities/WorldEntity.cc

    r2662 r2787  
    488488
    489489    // Note: These functions are placed in WorldEntity.h as inline functions for the release build.
    490 #ifndef _NDEBUG
     490#ifndef NDEBUG
    491491    const Vector3& WorldEntity::getPosition() const
    492492    {
  • code/trunk/src/orxonox/objects/worldentities/WorldEntity.h

    r2662 r2787  
    3333#include "OrxonoxPrereqs.h"
    3434
    35 #ifdef _NDEBUG
     35#ifdef NDEBUG
    3636#include <OgreSceneNode.h>
    3737#else
     
    419419
    420420    // Inline heavily used functions for release builds. In debug, we better avoid including OgreSceneNode here.
    421 #ifdef _NDEBUG
     421#ifdef NDEBUG
    422422    inline const Vector3& WorldEntity::getPosition() const
    423423        { return this->node_->getPosition(); }
    424424    inline const Quaternion& WorldEntity::getOrientation() const
    425         { return this->node_->getrOrientation(); }
     425        { return this->node_->getOrientation(); }
    426426    inline const Vector3& WorldEntity::getScale3D(void) const
    427427        { return this->node_->getScale(); }
Note: See TracChangeset for help on using the changeset viewer.