mirror of
https://github.com/pmret/papermario.git
synced 2024-11-08 12:02:30 +01:00
Describe NON_EQUIVALENT and NON_MATCHING purposes in CONTRIBUTING.md (#474)
* describe NON_EQUIVALENT and NON_MATCHING purposes * Update CONTRIBUTING.md
This commit is contained in:
parent
85ba892809
commit
b0bdb367bf
@ -94,3 +94,21 @@ Once you've matched a function, run the following:
|
||||
```
|
||||
|
||||
Then, go ahead and [create a pull request](https://github.com/pmret/papermario/pulls)!
|
||||
|
||||
## NON_EQUIVALENT
|
||||
|
||||
If you make significant progress on a function but are unable to 100% match it, feel free to wrap it in a NON_EQUIVALENT check:
|
||||
|
||||
```c
|
||||
#ifdef NON_EQUIVALENT
|
||||
void func(void) {
|
||||
// ...
|
||||
}
|
||||
#else
|
||||
INCLUDE_ASM(void, "file", func, void);
|
||||
#endif
|
||||
```
|
||||
|
||||
## NON_MATCHING
|
||||
|
||||
If you are unable to match a function but are sure it behaves the same, wrap **equivalent** C code in NON_MATCHING.
|
||||
|
Loading…
Reference in New Issue
Block a user