Skip to content

Commit 33d3a8c

Browse files
author
Roberto Santalla
authored
doc: fix documentation error in usage section
The example provided in the documentation used a different name for g_pFuncTableInfo, whic caused compilation to fail in GPAIL_LoadApi due to an undefined symbol: /tmp/ccuhxdcO.o: In function `GPAIL_LoadApi(GPA_API_Type, char const*)': main.cpp:(.text+0x502): undefined reference to `g_pFuncTableInfo' The documentation now includes the proper snippet taken from `include/gpu_perf_api_interface_loader.h`
1 parent 948c67c commit 33d3a8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/sphinx/source/usage.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,10 @@ initialize the DirectX 12 version of GPA:
6565

6666
#include "GPAInterfaceLoader.h"
6767

68+
#ifdef __cplusplus
6869
GPAApiManager* GPAApiManager::m_pGpaApiManager = nullptr;
69-
70-
GPAFunctionTable* pGpaFunctionTable = nullptr;
70+
#endif
71+
GPAFuncTableInfo* g_pFuncTableInfo = NULL;
7172

7273
bool InitializeGPA()
7374
{

0 commit comments

Comments
 (0)