- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.cpp
More file actions
Latest commit
24 lines (20 loc) · 390 Bytes
/
Copy patherror.cpp
File metadata and controls
24 lines (20 loc) · 390 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//error.cpp
#include<cstdlib>
#include<stdarg.h>
#include<stdio.h>
#include"sequencer.h"
#include"error.h"
staticvoidstop() {
extern Sequencer *seqPointer;
if(!seqPointer->continueFlag) {
seqPointer->stop();
}
}
voidprintError (constchar * fmt, ... ){
va_list args;
va_start(args, fmt);
vprintf(fmt, args);
va_end(args);
printf("\n");
stop();
}