Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a public API for the Con module
Only includes Con_Message at this stage.
- Loading branch information
Showing
11 changed files
with
52 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef DOOMSDAY_API_CONSOLE_H | ||
#define DOOMSDAY_API_CONSOLE_H | ||
|
||
#include "api_base.h" | ||
|
||
DENG_API_TYPEDEF(Con) | ||
{ | ||
de_api_t api; | ||
|
||
void (*Message)(char const* message, ...); | ||
} | ||
DENG_API_T(Con); | ||
|
||
#ifndef DENG_NO_API_MACROS_CONSOLE | ||
#define Con_Message _api_Con.Message | ||
#endif | ||
|
||
#ifdef __DOOMSDAY__ | ||
DENG_USING_API(Con); | ||
#endif | ||
|
||
#endif // DOOMSDAY_API_CONSOLE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,6 @@ | |
#include "ui/b_main.h" | ||
#include "ui/b_context.h" | ||
|
||
#include "api_console.h" | ||
|
||
#endif /* LIBDENG_CONSOLE */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters