rustsynth-sys 0.5.6

Low level bindings to VapourSynth
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "assertive.h"
#include <cstdio>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>

void AssertHandler(const char* file,int line,const char* expr)
{
    static const size_t maxScratchChars = 300;
    char scratch[maxScratchChars] = "";
    snprintf(scratch,maxScratchChars,"ASSERT: %s:%i \"%s\"\n",file,line,
        expr);
    scratch[maxScratchChars-1] = 0;
    MessageBoxA(0,scratch,"AVFS ASSERT",MB_OK);
    TRAP;
    TerminateProcess(GetCurrentProcess(),static_cast<unsigned>(-1));
}