Skip to content

DavidEGrayson/intsafe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

195 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

intsafe.h testing for mingw-w64

These files help the mingw-w64 project matain its implementation of Microsoft's intsafe.h header, which defines hundreds of inline functions for safe conversions, additions, multiplications, and subtractions of integers.

I originally auto-generated mignw-w64's intsafe.h back in 2015, but a few other contributors have added things since then.

How to run tests

To run an auto-generated testsuite for intsafe.h, first install MSYS2, then open a MINGW64 shell (or any other environment where the pacman command below runs successfully) and run this command to install prerequisites:

pacman --needed -S mingw-w64-{ucrt-x86_64,i686,x86_64,clang-x86_64,cross-mingwarm64}-gcc gcc $MINGW_PACKAGE_PREFIX-{ruby,ninja}

Then run ./test/test.sh INTSAFE, where INTSAFE is the path to the header you want to test. Some examples:

./test/test.sh ./intsafe.h
./test/test.sh ../mingw-w64/mingw-w64-headers/include/intsafe.h

About

Implementation of intsafe.h for mingw-w64.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors