mirror of
				https://github.com/platformio/platformio-core.git
				synced 2025-10-27 04:01:40 +01:00 
			
		
		
		
	Added support for templated methods in InoToCPPConverter (#858)
* Added support for templated methods in InoToCPPConverter
This commit is contained in:
		| @@ -26,12 +26,15 @@ Foo foo(&fooCallback); | ||||
|  | ||||
| // | ||||
|  | ||||
| template<class T> T Add(T n1, T n2) { | ||||
|     return n1 + n2; | ||||
| } | ||||
|  | ||||
| void setup() { | ||||
|     struct Item item1; | ||||
|     myFunction(&item1); | ||||
| } | ||||
|  | ||||
|  | ||||
| void loop() { | ||||
|  | ||||
| } | ||||
| @@ -40,7 +43,7 @@ void myFunction(struct Item *item) { | ||||
|  | ||||
| } | ||||
|  | ||||
| #warning "Line number is 43" | ||||
| #warning "Line number is 46" | ||||
|  | ||||
| void fooCallback(){ | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user