Skip to content

Commit

Permalink
changed define guards and minor syntactical changes
Browse files Browse the repository at this point in the history
  • Loading branch information
satac2 committed Jun 8, 2020
1 parent f283cc6 commit d5b155d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
10 changes: 4 additions & 6 deletions api/include/opentelemetry/context/context.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#ifndef CONTEXT_H_
#define CONTEXT_H_

#pragma once

/*The context class provides a context identifier*/
class Context{
Expand All @@ -20,7 +18,7 @@ class Context{
*
* Args: none
*/
Context operator[] (std::string i);
Context operator[] (std::string str);
};

/* The token class provides:????*/
Expand Down Expand Up @@ -56,10 +54,10 @@ class RuntimeContext {
* Args:
* token: A reference to a previous context
*/
virtual void detach(int);
virtual void detach(Token token);


};


#endif //CONTEXT_H_

5 changes: 1 addition & 4 deletions api/include/opentelemetry/context/contextvars_context.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef CONTEXT_VARS_CONTEXT_H_
#define CONTEXT_VARS_CONTEXT_H_
#pragma once

#include "context.h"
#include <string>
Expand Down Expand Up @@ -46,5 +45,3 @@ class ContextVarsRuntimeContext: public RuntimeContext{



#endif //CONTEXT_VARS_CONTEXT_H_

5 changes: 1 addition & 4 deletions api/include/opentelemetry/context/threadlocal_context.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#ifndef THREAD_LOCAL_CONTEXT_H_
#define THREAD_LOCAL_CONTEXT_H_
#pragma once

#include "context.h"

Expand Down Expand Up @@ -44,5 +43,3 @@ class ThreadLocalRuntimeContext: public RuntimeContext(){

};


#endif // THREAD_LOCAL_CONTEXT_H_

0 comments on commit d5b155d

Please sign in to comment.