~kiwec/ke

ke/src/Section.h -rw-r--r-- 207 bytes
1cc8481d — Wolf Clément Fix compilation 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

struct Section {
	unsigned int start, end;

	// Does the section contain this ?
	bool contains(unsigned int c) {
		if(c < start) return false;
		if(c > end) return false;
		return true;
	}
};