瀏覽代碼

Add an assert on custom frame control support

pull/4444/head
Menno van der Graaf 2 月之前
父節點
當前提交
8fe61b2a4c
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. +8
    -0
      examples/core/core_custom_frame_control.c

+ 8
- 0
examples/core/core_custom_frame_control.c 查看文件

@ -27,12 +27,20 @@
********************************************************************************************/
#include "raylib.h"
#include "config.h"
#include "assert.h"
//------------------------------------------------------------------------------------
// Program main entry point
//------------------------------------------------------------------------------------
int main(void)
{
#if !defined(SUPPORT_CUSTOM_FRAME_CONTROL)
// This examaple requires the SUPPORT_CUSTOM_FRAME_CONTROL feature.
// Please edit your raylib config.h and recompile raylib.
assert(false);
#endif
// Initialization
//--------------------------------------------------------------------------------------
const int screenWidth = 800;

Loading…
取消
儲存