Skip to content

Commit

Permalink
Refactor: Switched engine/portable/src/vertex to C++
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed May 22, 2012
1 parent 90ee984 commit 9eaaa69
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doomsday/engine/engine.pro
Expand Up @@ -639,7 +639,7 @@ SOURCES += \
portable/src/ui_mpi.c \
portable/src/ui_panel.c \
portable/src/uri.c \
portable/src/vertex.c \
portable/src/vertex.cpp \
portable/src/wadfile.c \
portable/src/window.cpp \
portable/src/writer.c \
Expand Down
8 changes: 8 additions & 0 deletions doomsday/engine/portable/include/vertex.h
Expand Up @@ -26,6 +26,10 @@
#include "r_data.h"
#include "p_dmu.h"

#ifdef __cplusplus
extern "C" {
#endif

/**
* Get a property value, selected by DMU_* name.
*
Expand All @@ -44,4 +48,8 @@ int Vertex_GetProperty(const Vertex* vertex, setargs_t* args);
*/
int Vertex_SetProperty(Vertex* vertex, const setargs_t* args);

#ifdef __cplusplus
}
#endif

#endif /// LIBDENG_MAP_VERTEX
@@ -1,8 +1,8 @@
/**
* @file vertex.c
* @file vertex.cpp
* Logical map vertex. @ingroup map
*
* @authors Copyright &copy; 2003-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
* @authors Copyright &copy; 2003-2012 Jaakko Keränen <jaakko.keranen@iki.fi>
* @authors Copyright &copy; 2006-2012 Daniel Swanson <danij@dengine.net>
*
* @par License
Expand All @@ -22,10 +22,9 @@

#include "de_base.h"
#include "de_console.h"
#include "de_refresh.h"
#include "de_play.h"

int Vertex_SetProperty(Vertex *vtx, const setargs_t *args)
int Vertex_SetProperty(Vertex* /*vtx*/, const setargs_t* /*args*/)
{
// Vertices are not writable through DMU.
Con_Error("Vertex_SetProperty: Is not writable.\n");
Expand Down

0 comments on commit 9eaaa69

Please sign in to comment.