您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
483 B

  1. #!/bin/sh
  2. # Test if including/linking/running an installed raylib works
  3. set -x
  4. export LD_RUN_PATH=/usr/local/lib
  5. CFLAGS="-Wall -Wextra -Werror $CFLAGS"
  6. if [ "$ARCH" = "i386" ]; then
  7. CFLAGS="-m32 $CLFAGS"
  8. fi
  9. cat << EOF | ${CC:-cc} -otest -xc - $(pkg-config --libs --cflags $@ raylib.pc) $CFLAGS && exec ./test
  10. #include <stdlib.h>
  11. #include <raylib.h>
  12. int main(void)
  13. {
  14. int num = GetRandomValue(42, 1337);
  15. return 42 <= num && num <= 1337 ? EXIT_SUCCESS : EXIT_FAILURE;
  16. }
  17. EOF